Integrand size = 16, antiderivative size = 136 \[ \int x \sinh ^2\left (a+b x-c x^2\right ) \, dx=-\frac {x^2}{4}-\frac {b e^{2 a+\frac {b^2}{2 c}} \sqrt {\frac {\pi }{2}} \text {erf}\left (\frac {b-2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}-\frac {b e^{-2 a-\frac {b^2}{2 c}} \sqrt {\frac {\pi }{2}} \text {erfi}\left (\frac {b-2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}-\frac {\sinh \left (2 a+2 b x-2 c x^2\right )}{8 c} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 136, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {5502, 5491, 5483, 2266, 2236, 2235} \[ \int x \sinh ^2\left (a+b x-c x^2\right ) \, dx=-\frac {\sqrt {\frac {\pi }{2}} b e^{2 a+\frac {b^2}{2 c}} \text {erf}\left (\frac {b-2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}-\frac {\sqrt {\frac {\pi }{2}} b e^{-2 a-\frac {b^2}{2 c}} \text {erfi}\left (\frac {b-2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}-\frac {\sinh \left (2 a+2 b x-2 c x^2\right )}{8 c}-\frac {x^2}{4} \]
[In]
[Out]
Rule 2235
Rule 2236
Rule 2266
Rule 5483
Rule 5491
Rule 5502
Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {x}{2}+\frac {1}{2} x \cosh \left (2 a+2 b x-2 c x^2\right )\right ) \, dx \\ & = -\frac {x^2}{4}+\frac {1}{2} \int x \cosh \left (2 a+2 b x-2 c x^2\right ) \, dx \\ & = -\frac {x^2}{4}-\frac {\sinh \left (2 a+2 b x-2 c x^2\right )}{8 c}+\frac {b \int \cosh \left (2 a+2 b x-2 c x^2\right ) \, dx}{4 c} \\ & = -\frac {x^2}{4}-\frac {\sinh \left (2 a+2 b x-2 c x^2\right )}{8 c}+\frac {b \int e^{2 a+2 b x-2 c x^2} \, dx}{8 c}+\frac {b \int e^{-2 a-2 b x+2 c x^2} \, dx}{8 c} \\ & = -\frac {x^2}{4}-\frac {\sinh \left (2 a+2 b x-2 c x^2\right )}{8 c}+\frac {\left (b e^{-2 a-\frac {b^2}{2 c}}\right ) \int e^{\frac {(-2 b+4 c x)^2}{8 c}} \, dx}{8 c}+\frac {\left (b e^{2 a+\frac {b^2}{2 c}}\right ) \int e^{-\frac {(2 b-4 c x)^2}{8 c}} \, dx}{8 c} \\ & = -\frac {x^2}{4}-\frac {b e^{2 a+\frac {b^2}{2 c}} \sqrt {\frac {\pi }{2}} \text {erf}\left (\frac {b-2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}-\frac {b e^{-2 a-\frac {b^2}{2 c}} \sqrt {\frac {\pi }{2}} \text {erfi}\left (\frac {b-2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}-\frac {\sinh \left (2 a+2 b x-2 c x^2\right )}{8 c} \\ \end{align*}
Time = 0.29 (sec) , antiderivative size = 159, normalized size of antiderivative = 1.17 \[ \int x \sinh ^2\left (a+b x-c x^2\right ) \, dx=\frac {b \sqrt {2 \pi } \text {erfi}\left (\frac {-b+2 c x}{\sqrt {2} \sqrt {c}}\right ) \left (\cosh \left (2 a+\frac {b^2}{2 c}\right )-\sinh \left (2 a+\frac {b^2}{2 c}\right )\right )+b \sqrt {2 \pi } \text {erf}\left (\frac {-b+2 c x}{\sqrt {2} \sqrt {c}}\right ) \left (\cosh \left (2 a+\frac {b^2}{2 c}\right )+\sinh \left (2 a+\frac {b^2}{2 c}\right )\right )-4 \sqrt {c} \left (2 c x^2+\sinh (2 (a+x (b-c x)))\right )}{32 c^{3/2}} \]
[In]
[Out]
Time = 0.70 (sec) , antiderivative size = 137, normalized size of antiderivative = 1.01
method | result | size |
risch | \(-\frac {x^{2}}{4}+\frac {{\mathrm e}^{2 c \,x^{2}-2 b x -2 a}}{16 c}+\frac {b \sqrt {\pi }\, {\mathrm e}^{-\frac {4 a c +b^{2}}{2 c}} \operatorname {erf}\left (\sqrt {-2 c}\, x +\frac {b}{\sqrt {-2 c}}\right )}{16 c \sqrt {-2 c}}-\frac {{\mathrm e}^{-2 c \,x^{2}+2 b x +2 a}}{16 c}-\frac {b \sqrt {\pi }\, {\mathrm e}^{\frac {4 a c +b^{2}}{2 c}} \sqrt {2}\, \operatorname {erf}\left (-\sqrt {2}\, \sqrt {c}\, x +\frac {b \sqrt {2}}{2 \sqrt {c}}\right )}{32 c^{\frac {3}{2}}}\) | \(137\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 730 vs. \(2 (110) = 220\).
Time = 0.25 (sec) , antiderivative size = 730, normalized size of antiderivative = 5.37 \[ \int x \sinh ^2\left (a+b x-c x^2\right ) \, dx=-\frac {8 \, c^{2} x^{2} \cosh \left (c x^{2} - b x - a\right )^{2} - 2 \, c \cosh \left (c x^{2} - b x - a\right )^{4} - 8 \, c \cosh \left (c x^{2} - b x - a\right ) \sinh \left (c x^{2} - b x - a\right )^{3} - 2 \, c \sinh \left (c x^{2} - b x - a\right )^{4} + \sqrt {2} \sqrt {\pi } {\left (b \cosh \left (c x^{2} - b x - a\right )^{2} \cosh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right ) - b \cosh \left (c x^{2} - b x - a\right )^{2} \sinh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right ) + {\left (b \cosh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right ) - b \sinh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right )\right )} \sinh \left (c x^{2} - b x - a\right )^{2} + 2 \, {\left (b \cosh \left (c x^{2} - b x - a\right ) \cosh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right ) - b \cosh \left (c x^{2} - b x - a\right ) \sinh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right )\right )} \sinh \left (c x^{2} - b x - a\right )\right )} \sqrt {-c} \operatorname {erf}\left (\frac {\sqrt {2} {\left (2 \, c x - b\right )} \sqrt {-c}}{2 \, c}\right ) - \sqrt {2} \sqrt {\pi } {\left (b \cosh \left (c x^{2} - b x - a\right )^{2} \cosh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right ) + b \cosh \left (c x^{2} - b x - a\right )^{2} \sinh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right ) + {\left (b \cosh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right ) + b \sinh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right )\right )} \sinh \left (c x^{2} - b x - a\right )^{2} + 2 \, {\left (b \cosh \left (c x^{2} - b x - a\right ) \cosh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right ) + b \cosh \left (c x^{2} - b x - a\right ) \sinh \left (\frac {b^{2} + 4 \, a c}{2 \, c}\right )\right )} \sinh \left (c x^{2} - b x - a\right )\right )} \sqrt {c} \operatorname {erf}\left (\frac {\sqrt {2} {\left (2 \, c x - b\right )}}{2 \, \sqrt {c}}\right ) + 4 \, {\left (2 \, c^{2} x^{2} - 3 \, c \cosh \left (c x^{2} - b x - a\right )^{2}\right )} \sinh \left (c x^{2} - b x - a\right )^{2} + 8 \, {\left (2 \, c^{2} x^{2} \cosh \left (c x^{2} - b x - a\right ) - c \cosh \left (c x^{2} - b x - a\right )^{3}\right )} \sinh \left (c x^{2} - b x - a\right ) + 2 \, c}{32 \, {\left (c^{2} \cosh \left (c x^{2} - b x - a\right )^{2} + 2 \, c^{2} \cosh \left (c x^{2} - b x - a\right ) \sinh \left (c x^{2} - b x - a\right ) + c^{2} \sinh \left (c x^{2} - b x - a\right )^{2}\right )}} \]
[In]
[Out]
\[ \int x \sinh ^2\left (a+b x-c x^2\right ) \, dx=\int x \sinh ^{2}{\left (a + b x - c x^{2} \right )}\, dx \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 216, normalized size of antiderivative = 1.59 \[ \int x \sinh ^2\left (a+b x-c x^2\right ) \, dx=-\frac {1}{4} \, x^{2} + \frac {\sqrt {2} {\left (\frac {\sqrt {\pi } {\left (2 \, c x - b\right )} b {\left (\operatorname {erf}\left (\sqrt {\frac {1}{2}} \sqrt {\frac {{\left (2 \, c x - b\right )}^{2}}{c}}\right ) - 1\right )}}{\sqrt {\frac {{\left (2 \, c x - b\right )}^{2}}{c}} \left (-c\right )^{\frac {3}{2}}} - \frac {\sqrt {2} c e^{\left (-\frac {{\left (2 \, c x - b\right )}^{2}}{2 \, c}\right )}}{\left (-c\right )^{\frac {3}{2}}}\right )} e^{\left (2 \, a + \frac {b^{2}}{2 \, c}\right )}}{32 \, \sqrt {-c}} + \frac {\sqrt {2} {\left (\frac {\sqrt {\pi } {\left (2 \, c x - b\right )} b {\left (\operatorname {erf}\left (\sqrt {\frac {1}{2}} \sqrt {-\frac {{\left (2 \, c x - b\right )}^{2}}{c}}\right ) - 1\right )}}{\sqrt {-\frac {{\left (2 \, c x - b\right )}^{2}}{c}} c^{\frac {3}{2}}} + \frac {\sqrt {2} e^{\left (\frac {{\left (2 \, c x - b\right )}^{2}}{2 \, c}\right )}}{\sqrt {c}}\right )} e^{\left (-2 \, a - \frac {b^{2}}{2 \, c}\right )}}{32 \, \sqrt {c}} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 144, normalized size of antiderivative = 1.06 \[ \int x \sinh ^2\left (a+b x-c x^2\right ) \, dx=-\frac {1}{4} \, x^{2} - \frac {\frac {\sqrt {2} \sqrt {\pi } b \operatorname {erf}\left (-\frac {1}{2} \, \sqrt {2} \sqrt {c} {\left (2 \, x - \frac {b}{c}\right )}\right ) e^{\left (\frac {b^{2} + 4 \, a c}{2 \, c}\right )}}{\sqrt {c}} + 2 \, e^{\left (-2 \, c x^{2} + 2 \, b x + 2 \, a\right )}}{32 \, c} - \frac {\frac {\sqrt {2} \sqrt {\pi } b \operatorname {erf}\left (-\frac {1}{2} \, \sqrt {2} \sqrt {-c} {\left (2 \, x - \frac {b}{c}\right )}\right ) e^{\left (-\frac {b^{2} + 4 \, a c}{2 \, c}\right )}}{\sqrt {-c}} - 2 \, e^{\left (2 \, c x^{2} - 2 \, b x - 2 \, a\right )}}{32 \, c} \]
[In]
[Out]
Timed out. \[ \int x \sinh ^2\left (a+b x-c x^2\right ) \, dx=\int x\,{\mathrm {sinh}\left (-c\,x^2+b\,x+a\right )}^2 \,d x \]
[In]
[Out]